package ge.tsu.java.project.server;

import java.util.Scanner;

public class Launcher {

	public static void main(String[] args) {
		ServerConfig config;
		if (args == null || args.length == 0) {
			config = ServerConfig.getDefault();
		} else {
			// TODO parse arguments and instantiate config
			config = null;
		}
		Server server = Server.getInstance(config);
		server.start();
		Scanner s = new Scanner(System.in);
		while (!s.next().equalsIgnoreCase("q")) {
			printUsage();
		}
		s.close();
		server.stop();
	}

	static void printUsage() {
		// TODO
	}

}
